<template>
  <i class="iconfont iconfont-container" :class="fontClass"></i>
</template>

<script>
const classMap = {
  home: "icon-zhuye",
  success: "icon-zhengquewancheng-yuankuang",
  error: "icon-cuowu",
  warn: "icon-jinggao",
  info: "icon-xinxi",
  blog: "icon-blog",
  code: "icon-code",
  about: "icon-about",
  weixin: "icon-weixin",
  mail: "icon-email",
  github: "icon-github-fill",
  qq: "icon-QQ-circle-fill",
  arrowUp: "icon-shangjiantou",
  arrowDown: "icon-arrow-down",
  empty: "icon-empty",
  chat: "icon-comment"
};

export default {
  props: {
    type: {
      type: String,
      required: true,
    }
  },
  computed: {
    fontClass() {
      return classMap[this.type];
    }
  }
}
</script>

<style>

</style>